
<template>
  <div>
    <span>{{'共' + allPracticesNum + '题，' + allPracticesTime}}</span>
  </div>
</template>
<script setup>
import {onMounted, ref, watch} from 'vue'
const props = defineProps({ scope: {
    default: ''
  } })
const allPracticesNum = ref('')
const allPracticesTime = ref('')
const setAllPractices = () => {
  allPracticesNum.value = props.scope.allPracticesNum? props.scope.allPracticesNum : 0
  allPracticesTime.value = props.scope.allPracticesTime? props.scope.allPracticesTime : '0秒'
}

onMounted(() => {
  setAllPractices()
})
</script>

<style >
.course-name {
  position: relative;
  margin: auto;
  height: 20px;
  color: #409EFF;
  font-size: 14px;
  padding: 0 8px;
  text-align: center;
  opacity: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.course-name-item {
  padding: 0 8px;
  border: 1px solid #D9ECFF;
  border-radius: 2px;
  background-color: #ECF5FF;
}
</style>

